{extend name="layout/main-block" /}

<!-- main content start -->
{block name="content"}
<section id="main-content">
    <section class="wrapper">
        <div class="row">
            <ol class="breadcrumb">
                <li class="h4"><a href="">视频管理</a></li>
            </ol>
        </div>
        <div class="row col-sm-1" style="margin-bottom: 20px;">
            <a href="{:url('voices/voices_create')}" class="btn btn-primary" role="button">添加视频</a>
        </div>
        <div class="row content-main">
            <div class="col-sm-12">
                <form action="">
                    <table class="table table-striped">
                        <tr>
                            <th>id</th>
                            <th>视频标题中文</th>
                            <th>视频标题英文</th>
                            <th>视频简介中文</th>
                            <th>视频简介英文</th>
                            <th>视频图片</th>
                            <th>视频文件</th>
                            <th>操作</th>
                        </tr>
                        {volist name="voice" id="v" empty="$empty" }
                        <tr>
                            <td>{$v.vioce_id}</td>
                            <td>{$v.vio_name_cn |mb_substr=0,8}</td>
                            <td>{$v.vio_name_en |mb_substr=0,8}</td>
                            <td>{$v.vio_intro_cn |mb_substr=0,8}</td>
                            <td>{$v.vio_intro_en |mb_substr=0,8}</td>
                            <td>
                                {if condition="$v.img_url neq ''" }
                                <img src="{$v.img_url}" alt="" width="100">
                                {/if}
                            </td>
                            <td>{$v.vioce_url}</td>
                            <td class="operation">
                                <a class="btn btn-info btn-xs" href="{:url('voices/voices_update', ['id'=>$v.vioce_id])}"><i class="glyphicon glyphicon-edit"></i>修改</a>
                                <a class="btn btn-danger btn-xs" href="{:url('voices/voices_delete', ['id'=>$v.vioce_id])}" onclick="return confirm('确定要删除吗？');"><i class="glyphicon glyphicon-remove"></i>删除</a>
                            </td>
                        </tr>
                        {/volist}
                    </table>
                </form>
            </div>
        </div>
        {$page}
    </section>
</section>
{/block}

{block name="javascript"}
<script type="text/javascript">

</script>
{/block}